<template>
    <p>子元素</p>
    <slot :sonname="name">子元素内容</slot>
    <p>{{ name }}</p>
</template>
<script>
export default{
    data(){
        return{
            name:"Tom"
        }
    }
}
</script>